home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / fontprefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-12-14  |  1.7 KB  |  85 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef FONTPREFS_H
  8. #define FONTPREFS_H
  9.  
  10. #include <QTabWidget>
  11. #include <QList>
  12. #include <QMap>
  13. class QHBoxLayout;
  14. class QVBoxLayout;
  15. class QPushButton;
  16. class QListWidget;
  17. class QListWidgetItem;
  18. class QTreeWidget;
  19. class QTreeWidgetItem;
  20. class QTableWidget;
  21. class FontListView;
  22.  
  23. #include "scribusapi.h"
  24. #include "prefsmanager.h"
  25.  
  26. class ScribusDoc;
  27. class ScComboBox;
  28.  
  29. /*! \brief A configuration Widget for Font Preferences */
  30. class SCRIBUS_API FontPrefs : public QTabWidget
  31. {
  32.     Q_OBJECT
  33.  
  34. public:
  35.     FontPrefs( QWidget* parent, bool Hdoc, QString PPath, ScribusDoc* doc );
  36.     ~FontPrefs() {};
  37.     void restoreDefaults();
  38.  
  39.     QMap<QString,QString> RList;
  40.     QList<ScComboBox*> FlagsRepl;
  41.  
  42. private:
  43.     QWidget* tab1;
  44.     QWidget* tab;
  45.     QWidget* tab3;
  46.     QListWidget* PathList;
  47.  
  48.     //! All fonts view
  49.     FontListView * fontList;
  50.     QTableWidget* Table3;
  51.     QPushButton* DelB;
  52.     QPushButton* ChangeB;
  53.     QPushButton* AddB;
  54.     QPushButton* RemoveB;
  55.  
  56.     //! List of font names of allowed fonts for substitutions
  57.     QStringList UsedFonts;
  58.     QString HomeP;
  59.     QString CurrentPath;
  60.     bool DocAvail;
  61.     ScribusDoc* docc;
  62.  
  63. public slots:
  64.     void ReplaceSel(int r, int c);
  65.     void UpdateFliste();
  66.     void DelEntry();
  67.     void SelectPath(QListWidgetItem *c);
  68.     void AddPath();
  69.     void ChangePath();
  70.     void DelPath();
  71.  
  72. protected:
  73.     void readPaths();
  74.     void writePaths();
  75.     void rebuildDialog();
  76.  
  77.     QVBoxLayout* tab1Layout;
  78.     QVBoxLayout* tabLayout;
  79.     QHBoxLayout* Layout2a;
  80.     QHBoxLayout* tab3Layout;
  81.     QVBoxLayout* LayoutR;
  82. };
  83.  
  84. #endif // FONTPREFS_H
  85.